<?php
/**
 * 
 * @todo description of this class
 * 
 * @author Alton Crossley <crossleyframework@nogahidebootstrap.com>
 * @package Crossley Framework
 *  
 * @copyright Copyright (c) 2003-2009, Nogaide BootStrap INC. All rights reserved.
 * @license BSD http://opensource.org/licenses/bsd-license.php
 * @version $Id:$
 * 
 */
class X_Broker_Error
{
    public $bDebug = false; 
    function __construct($x)
    {
        $this->bDebug = $x->isDebug();
    }
    public function respond($aErrors)
    {
        if ($this->bDebug)
        {
            return X_Debug::formatHtml($aErrors);
        }
        
        header('Location: /');
        exit(0);
    }
}